using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Entities;
using Bll;

public partial class orderhistory : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["Login"] != null)
            { 
                ArrayList arr = (ArrayList) Session["Login"];
                string username = arr[0].ToString();
                OrderBll orderBll = new OrderBll();
                IList<OrderInfo> orderInfos = orderBll.GetByUserName(username);
                //text.Text = username;
                rpOrder.DataSource = orderInfos;
                rpOrder.DataBind();
                //GridView1.
                //ObjectDataSource1.DataObjectTypeName = 
            }
        }
    }
}
